
<form method="post" action="/oss/?r=versionRecord/doAdd">
    <{include file='../common_params.tpl'}>

    <div class="box box-black">
        <div class="box-body">
            <table class="table table-bordered">
                <colgroup>
                    <col style="width: 20%;"></col>
                    <col style="width: 80%;"></col>
                </colgroup>
                
                
                <tr>
                    <th class="th-label">渠道</th>
                    <td>
                        <input type="text" name="channel" class="form-control inline" placeholder="" />
                    </td>
                </tr>
                
                <tr class="type-info" for="1">
                    <th class="th-label">显示用户协议</th>
                    <td>
                        <input type="radio" class="form-control" name="user_protocol" value="1" checked="checked" />&nbsp;显示&nbsp;&nbsp;
                        <input type="radio" class="form-control" name="user_protocol" value="0" />&nbsp;不显示
                    </td>
                </tr>
                
                <tr class="type-info" for="1">
                    <th class="th-label">显示备案信息</th>
                    <td>
                        <input type="radio" class="form-control" name="display" value="1" checked="checked" />&nbsp;显示&nbsp;&nbsp;
                        <input type="radio" class="form-control" name="display" value="0" />&nbsp;不显示
                    </td>
                </tr>
                
               <tr class="type-info" for="1">
                    <th class="th-label">显示备案信息图标</th>
                    <td>
                        <input type="radio" class="form-control" name="display_icon" value="1" />&nbsp;显示&nbsp;&nbsp;
                        <input type="radio" class="form-control" name="display_icon" value="0" checked="checked"/>&nbsp;不显示
                    </td>
                </tr>
                
                
                
                <tr>
                    <th class="th-label">备案信息</th>
                    <td>
                        <textarea  class="form-control" name="record_num" rows="10" ></textarea>
                    </td>
                </tr>
                
                
                
                <tr>
                    <th class="th-label">备案信息链接</th>
                    <td>
                        <input type="text"  name="record_link" class="form-control " value="" placeholder="" />
                    </td>
                </tr>
                
               
            </table>
        </div>

        <div class="box-footer">
            <a href="javascript:history.go(-1);" class="btn btn-default">返回</a>
            <button type="submit" name="sub" class="btn btn-default pull-right">保存</button>
        </div>
    </div>
</form>

<script type="text/javascript">
    $(function(){
    	$('button[name="sub"]').click(function(){    	
    		var channel = $('input[name="channel"]').val();
        	if(channel == ''){
        		layer.alert('请填写渠道', {icon: 2, skin: 'layui-layer-molv'});
            	return false;
        	}
        	
        	
        });
    });
</script>